<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li ><a href="{:url('index')}">桌面图标</a></li>
        <li><a href="{:url('index','type=logo')}">LOGO列表</a></li>
        <li><a href="{:url('index','type=loading')}">LOADING列表</a></li>
        <li><a href="{:url('index','type=theme')}">皮肤列表</a></li>
        <li class="active"><a href="{:url('add')}">添加资源</a></li>
    </ul>
    <a href="javascript:void(0)" onclick="edit()">编辑</a>
    <table class="table table-hover table-bordered margin-top-20">
        <thead>
        <tr>
            <th>图标</th>
            <th>文件名</th>
            <th>文件大小</th>
            <th>图标</th>
            <th>LOGO</th>
            <th>Loading</th>
            <th>theme</th>
        </tr>
        </thead>
        <tbody id="upimgs">
            
        </tbody>
    </table>

    <div class="pagination">{$page|default=''}</div>
    <table style="display:none" >
        <tbody id="imgtpl">
        <tr>
                <td><img datasrc="{preview_url}"></td>
                <td>{name}</td>
                <td>{filepath}</td>
                <td><a class="btn js-ajax-dialog-btn disabled" data-refresh="false" data-msg="确定要设置为图标吗" href="{:url('addRes')}?resid={filekey}&type=icon">图标</a></td>
                <td><a class="btn js-ajax-dialog-btn disabled" data-refresh="false" data-msg="确定要设置为LOGO吗" href="{:url('addRes')}?resid={filekey}&type=logo">LOGO</a></td>
                <td><a class="btn js-ajax-dialog-btn disabled" data-refresh="false" data-msg="确定要设置为LOADING吗" href="{:url('addRes')}?resid={filekey}&type=loading">LOADING</a></td>
                <td><a class="btn js-ajax-dialog-btn disabled" data-refresh="false" data-msg="确定要设置为皮肤吗" href="{:url('addRes')}?resid={filekey}&type=theme">皮肤</a></td>
            </tr>
        </tbody>
    </table>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>
    uploadMultiImage('图片上传','#upimgs','imgtpl');
    function edit(){
        $('.js-ajax-dialog-btn').removeClass("disabled").addClass("btn-default");
        Wind.use('artDialog', 'noty', function () {
            $('.js-ajax-dialog-btn').on('click', js_ajax_click);
        });
    }
</script>
</body>
</html>
